package com.itc.controller;

import com.itc.entity.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.itc.service.TestService;

import java.util.List;

/**
 * @Auther: wangyanwei
 * @Date: 2018/8/17 09:13
 * @Description:
 */

@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("getClientAll")
    public List<Client> getClientAll(){
        return testService.getClientAll();
    }


    @RequestMapping("save")
    public  String save(){
        testService.save("wangwu");
        return "ok";
    }
}
